from django import template
register = template.Library()

@register.filter
def concat(value, arg):
    """Concat argument as string."""
    try:
        return "%s%s" % (str(value),str(arg))
    except (TypeError):
        return ''